package com.coolingme.general;

/**
 * 策略模式测试
 *
 * @author wangyue
 * @date 2020-09-22 21:37
 */
public class Test {

    public static void main(String[] args) {
        // 选择一个策略
        ConcreteStrategyA concreteStrategyA = new ConcreteStrategyA();
        // 使用上下文执行策略
        Context context = new Context(concreteStrategyA);
        context.algorithm();
    }

}
